package com.bwie.common.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UserDto {
    @NotNull(message = "参数不能为空")
    private String username;
    @NotNull(message = "参数不能为空")
    @Pattern(regexp = "^\\d{6}$",message = "密码不能少于6位")
    private String password;
    private String imgCode;
}
